/*
 *    Copyright (c) 2018-2025, proj All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the proj developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: proj
 */

package com.ykht.proj.comsrv.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 订阅消息
 *
 * @author proj code generator
 * @date 2021-06-05 15:30:54
 */
@Data
@TableName("v_subscribe_msg")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "订阅消息")
public class VSubscribeMsg extends Model<VSubscribeMsg> {
private static final long serialVersionUID = 1L;

    /**
     * 
     */
    @TableId
    @ApiModelProperty(value="")
    private Long id;

    @ApiModelProperty(value="COUPON_EXPIRE_TOUTIAO:头条优惠券，COUPON_EXPIRE_TOUTIAO_DOUYIN:抖音优惠券，coupon_expire:优惠券领取id,card_expire:订单卡id,activity_notice:活动id")
    private Long tatId;
    @ApiModelProperty(value="coupon_expire优惠券过期提醒card_expire卡过期提醒activity_notice活动通知")
    private String type;
    /**
     * 用户id
     */
    @ApiModelProperty(value="用户id")
    private Long personId;
    @ApiModelProperty(value="openId")
    private String openId;
    /**
     * 模板id
     */
    @ApiModelProperty(value="模板id")
    private String templateId;
    /**
     *
     */
    @ApiModelProperty(value="")
    private String msg;
    @ApiModelProperty(value="0订阅1拒绝")
    private Integer sendFlag;
    @ApiModelProperty(value="0未发送1已发送")
    private Integer status;
    /**
     * 创建人
     */
    @ApiModelProperty(value="创建人")
    private Long createUser;
    /**
     * 修改人
     */
    @ApiModelProperty(value="修改人")
    private Long updateUser;
    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @ApiModelProperty(value="更新时间")
    private LocalDateTime updateTime;
    /**
     * 租户ID
     */
    @ApiModelProperty(value="租户ID",hidden=true)
    private Integer tenantId;
    }
